package cn.kgc.novel.service.impl;

import cn.kgc.novel.mapper.TypeMapper;
import cn.kgc.novel.pojo.Type;
import cn.kgc.novel.service.TypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TypeServiceImpl implements TypeService {

    @Resource
    private TypeMapper typeMapper;

//    //查询类型
//    @Override
//    public List<Type> findList() {
//        return typeMapper.getTypeList();
//    }
    @Override
    public List<Type> findType(String sex) {
        return typeMapper.findType(sex);
    }
    //添加类型
    @Override
    public void addType(Type type) {
        typeMapper.addType(type);
    }
    //删除类型
    @Override
    public void deleteType(Integer tid) {
        typeMapper.deleteType(tid);
    }
}
